import Vue from 'vue';
import axios from 'axios';
import electron, { webFrame } from 'electron';

import App from './App';
import router from './router';
import db from '../dataStore/index'
import logger from '@/utils/logger'

/* // 完整引入
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
Vue.use(Antd)
*/
import { Button, message } from 'ant-design-vue';
Vue.use(Button);
Vue.prototype.$message = message

if (!process.env.IS_WEB) {
  Vue.prototype.$electron = electron;
}
Vue.prototype.$db = db;
Vue.prototype.$logger = logger;
Vue.http = Vue.prototype.$http = axios;


webFrame.setVisualZoomLevelLimits(1, 1);
webFrame.setLayoutZoomLevelLimits(0, 0);
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  template: '<App/>'
}).$mount('#app');
